const {override, fixBabelImports,addLessLoader} = require('customize-cra');
const rewireReactHotLoader = require('react-app-rewire-hot-loader');

module.exports = override(
    rewireReactHotLoader,
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: true,
    }),

    addLessLoader({
        javascriptEnabled:true,
        modifyVars:{
            "@primary-color": "#df3e3e",
        }
    })
);